<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="./public/css/index.css" ></link>
    </head>
    <body>
       <div id="header">
           <div id="div1"><a href="index.php?m=Index&c=new&a=add">添加帖子</a>&nbsp;
              &nbsp;<a href="index.php?m=Index&c=user&a=userupdateSmarty">用户信息</a></div>
           
            <div id="div2"><a href="index.php?m=Index&c=user&a=login">登录</a>|
                <a href="index.php?m=Index&c=user&a=register">注册</a></div>
        </div>
             <div id="div3"> 
               <table>
            {foreach from=$list key=$k item=$v}
               <tr>
                   <td><a href="index.php?m=Index&c=new&a=newContent&id={$v.id}">{$v.title}</a></td>
               </tr>
            {/foreach}
            </table>
            <hr/>
            <a href="index.php?m=Index&c=index&a=index&page=1">首页</a>
           {if $page > 1}
            <a href="index.php?m=Index&c=index&a=index&page={$page-1}">上一页</a>
            {/if}
            {if $page < $pagecount}
            <a href="index.php?m=Index&c=index&a=index&page={$page+1}">下一页</a>
            {/if}
            <a href="index.php?m=Index&c=index&a=index&page={$pagecount}">尾页</a>
             </div>
    </body>
</html>

